//
//  ProjectListTableViewCell.m
//  wsgz
//
//  Created by huck on 2017/5/7.
//  Copyright © 2017年 BoingPay. All rights reserved.
//

#import "ProjectListTableViewCell.h"
#import "HomeManager.h"
#import "AppUtils.h"
#import "ProjectDetailViewController.h"

@interface ProjectListTableViewCell ()

@property (nonatomic, copy) NSString *projectId;

@end


@implementation ProjectListTableViewCell

- (void)awakeFromNib
{
    [super awakeFromNib];
    [self initSubview];
}

-(void)initSubview
{
    _pecentLabel.layer.borderWidth = 2;
    _pecentLabel.layer.borderColor = [UIColor colorWithString:COLOR_17A4FF].CGColor;
}

- (void)setInfo:(ProjectInfoData *)data
{
    _projectId = data.projectId;
    _nameLabel.text = data.projectName;
    _pecentLabel.text = [NSString stringWithFormat:@"%@",data.tempo];
    _projectTypeLabel.text =[NSString stringWithFormat:@" %@   ",data.projectTypeName];
}

- (IBAction)cellClick:(UIButton *)sender
{
    ProjectDetailViewController *controller = [[ProjectDetailViewController alloc] init];
    controller.projectId = _projectId;
    [[AppUtils getNavigationController] pushViewController:controller animated:YES];
}
@end
